#pragma once
using namespace System::Drawing;

namespace SamplesCPlusPlusManaged {

public ref class SimpleHelloWorld:public ISampleBase
{
private:
	IXvueSequencerUser^ sequencer;
public:

	virtual String^ ToString()override
	{
		return "C++ simple hello world";
	}

	virtual void SetSequencer(IXvueSequencerUser ^ seq)
	{
		sequencer = seq;
	}

	virtual void HelperDoAction(int actionid)
	{
        switch (actionid)
        {
                //simple text show with clear all
            default:
                {
					sequencer->xCommand("XVUE", XvueSequencerCommandType::ClearAllItems);
					XvueSequencerItemTextBase^ text = gcnew XvueSequencerItemTextBase();
                    text->xText = "Hello world";
                    text->xFontFamily = "Arial";
                    text->xSize = 35;
                    text->xVisualProperties->xPosition->X = 100;
                    text->xVisualProperties->xPosition->Y = 300;
					text->xPalette->ColorForeground = Color::FromArgb(255, 250, 250, 200);
                    sequencer->xQueSequencerItem(text);
                } break;
        }

	}
};
}